<%@include file="/header.jsp" %>
<c:url value="/backend/CategoryAdmin" var="backUrl" />


<div id="breadcrump">
    <ul id="breadcrump-list">
        <li>&raquo; Nieuwe categorie</li>
    </ul>
</div>



<c:choose>
    <c:when test="${param.success == 'true'}">
        Categorie is opgeslagen! <a href="${backUrl}">Terug</a>
    </c:when>
    <c:otherwise>
        
         <c:if test="${formError != null}">
            <div class="formError">
                <c:forEach var="v" items="${formError}">
                    ${v.getMessage()} <br />
                </c:forEach>

            </div>
        </c:if>
        
        <form action="" method="POST">
            <table border="1">
                <tr>
                    <td><label for="txtName">Naam</label></td>
                    <td><input type="text" name="name" value="${fn:escapeXml(category.name)}" id="txtName"></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input type="submit" value="Opslaan"></td>
                </tr>
            </table>
        </form>
        <a href="${backUrl}">Terug</a>
    </c:otherwise>
</c:choose>

<%@include file="/footer.jsp" %>